package com.css.zfzx.fwsjcj.modules.taskmanage.taskfrom.entity;

import javax.persistence.*;
import java.util.Date;
import java.util.Objects;

/**
 * 普查主表
 */
@Entity
@Table(name = "fw_form", schema = "fwsjcj", catalog = "")
public class FwFormEntity {
    /**
     * 主键
     */
    private String fwId;
    /**
     * 任务id
     */
    private String taskId;
    /**
     * 建筑物经度
     */
    private String bulidingLongitude;
    /**
     * 建筑物纬度
     */
    private String bulidingLatitude;
    /***
     * 建筑物名称
     */
    private String buildingName;
    /**
     * 建筑编码
     */
    private String buildingCode;
    /**
     * 表单id（子表ID）
     */
    private String formId;
    /**
     * 创建人ID
     */
    private String createUserId;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 建筑类型(判断4个子表的类型)
     */
    private String bulidingType;
    /**
     * 审核状态0、未提交1、未审核2、审核未通过3、审核通过
     */
    private String spType;
    /**
     * 审核时间
     */
    private Date checkTime;
    /**
     * 提交时间
     **/
    private Date submitTime;
    /***
     * 删除标记0、无效，1、有效
     */
    private String isValid;
    /**
     * 是否填完
     */
    private String isSaveAll;
    /**
     * 任务名称
     */
    private String taskName;
    /**
     * 采集人
     */
    private String collecPerson;
    /**
     * 建筑地址
     */
    private String buildingAddress;
    /**
     * 所属省份
     */
    private String belongtoProvince;
    /**
     * 所属城市
     */
    private String belongtoCity;
    /**
     * 所属市区
     */
    private String belongtoArea;
    /**
     * 质检状态
     * 0未完成审核不能质检 1未质检 2质检通过 3质检失败
     */
    private String qualityStatus;
    /**
     * 质检原因 分号分隔
     */
    private String qualityReason;

    private String reason;

    private String backOpinion;

    public void setBackOpinion(String backOpinion) {
        this.backOpinion = backOpinion;
    }

    public String getBackOpinion() {
        return backOpinion;
    }

    /**
     * 数据来源
     */
    private String dataSources;

    @Basic
    @Column(name = "data_sources")
    public String getDataSources() {
        return dataSources;
    }

    public void setDataSources(String dataSources) {
        this.dataSources = dataSources;
    }


    @Id
    @Column(name = "fw_id")
    public String getFwId() {
        return fwId;
    }

    public void setFwId(String fwId) {
        this.fwId = fwId;
    }

    @Basic
    @Column(name = "task_id")
    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    @Basic
    @Column(name = "buliding_longitude")
    public String getBulidingLongitude() {
        return bulidingLongitude;
    }

    public void setBulidingLongitude(String bulidingLongitude) {
        this.bulidingLongitude = bulidingLongitude;
    }

    @Basic
    @Column(name = "buliding_latitude")
    public String getBulidingLatitude() {
        return bulidingLatitude;
    }

    public void setBulidingLatitude(String bulidingLatitude) {
        this.bulidingLatitude = bulidingLatitude;
    }

    @Basic
    @Column(name = "building_name")
    public String getBuildingName() {
        return buildingName;
    }

    public void setBuildingName(String buildingName) {
        this.buildingName = buildingName;
    }

    @Basic
    @Column(name = "form_id")
    public String getFormId() {
        return formId;
    }

    public void setFormId(String formId) {
        this.formId = formId;
    }

    @Basic
    @Column(name = "creat_user_id")
    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    @Basic
    @Column(name = "creat_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "buliding_type")
    public String getBulidingType() {
        return bulidingType;
    }

    public void setBulidingType(String bulidingType) {
        this.bulidingType = bulidingType;
    }

    @Basic
    @Column(name = "sp_type")
    public String getSpType() {
        return spType;
    }

    public void setSpType(String spType) {
        this.spType = spType;
    }

    @Basic
    @Column(name = "check_time")
    public Date getCheckTime() {
        return checkTime;
    }

    public void setCheckTime(Date checkTime) {
        this.checkTime = checkTime;
    }

    @Basic
    @Column(name = "submit_time")
    public Date getSubmitTime() {
        return submitTime;
    }

    public void setSubmitTime(Date submitTime) {
        this.submitTime = submitTime;
    }

    @Basic
    @Column(name = "is_valid")
    public String getIsValid() {
        return isValid;
    }

    public void setIsValid(String isValid) {
        this.isValid = isValid;
    }

    @Basic
    @Column(name = "is_save_all")
    public String getIsSaveAll() {
        return isSaveAll;
    }

    public void setIsSaveAll(String isSaveAll) {
        this.isSaveAll = isSaveAll;
    }

    @Basic
    @Column(name = "task_name")
    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    @Basic
    @Column(name = "collec_person")
    public String getCollecPerson() {
        return collecPerson;
    }

    public void setCollecPerson(String collecPerson) {
        this.collecPerson = collecPerson;
    }

    @Basic
    @Column(name = "buliding_code")
    public String getBuildingCode() {
        return buildingCode;
    }

    public void setBuildingCode(String buildingCode) {
        this.buildingCode = buildingCode;
    }

    @Basic
    @Column(name = "building_address")
    public String getBuildingAddress() {
        return buildingAddress;
    }

    public void setBuildingAddress(String buildingAddress) {
        this.buildingAddress = buildingAddress;
    }

    @Basic
    @Column(name = "belongto_province")
    public String getBelongtoProvince() {
        return belongtoProvince;
    }

    public void setBelongtoProvince(String belongtoProvince) {
        this.belongtoProvince = belongtoProvince;
    }

    @Basic
    @Column(name = "belongto_city")
    public String getBelongtoCity() {
        return belongtoCity;
    }

    public void setBelongtoCity(String belongtoCity) {
        this.belongtoCity = belongtoCity;
    }

    @Basic
    @Column(name = "belongto_area")
    public String getBelongtoArea() {
        return belongtoArea;
    }

    public void setBelongtoArea(String belongtoArea) {
        this.belongtoArea = belongtoArea;
    }

    @Basic
    @Column(name = "quality_status")
    public String getQualityStatus() {
        return qualityStatus;
    }

    public void setQualityStatus(String qualityStatus) {
        this.qualityStatus = qualityStatus;
    }

    @Basic
    @Column(name = "quality_reason")
    public String getQualityReason() {
        return qualityReason;
    }

    public void setQualityReason(String qualityReason) {
        this.qualityReason = qualityReason;
    }
    @Basic
    @Column(name = "reason")
    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }
}
